package com.mrd.gtimp.v2.fund;

public enum FundPayTypeEnum {
	CHECK, CASH, TRANSFER, ONLINE,Alipay,WechatPay;

	/**
	 * 支付平台支付渠道代码转换为枚举类型
	 * @param payChannel
	 * @return
	 */
	public static FundPayTypeEnum getFundPayTypeEnumByPayChannel(String payChannel){
		if("2".equals(payChannel)){
			return Alipay;
		}else if("1".equals(payChannel)){
			return WechatPay;
		}
		return null;
	}

	public static String ALL_OPTION() {
		return "[[ \"支票支付\", \"CHECK\" ]," + " [ \"现金支付\", \"CASH\" ], "
		        + " [ \"线下转账\", \"TRANSFER\" ], " + " [ \"在线支付\", \"ONLINE\" ],[\"支付宝\",\"Alipay\"],[\"微信支付\",\"WechatPay\"]] ";
	}

	public static String ALL_OFFLINE_OPTION() {
		return "[[ \"支票支付\", \"CHECK\" ]," + " [ \"现金支付\", \"CASH\" ], "
		        + " [ \"线下转账\", \"TRANSFER\" ],[ \"在线支付\", \"ONLINE\" ],[\"支付宝\",\"Alipay\"],[\"微信支付\",\"WechatPay\"]] ";
	}
}
